package Access;

import Entities.Executor;
import ExtEntities.VeryExtExecutor;
import java.sql.Date;
import java.util.LinkedList;
import javax.ejb.Remote;

/**
 *
 * @author 647_2
 */
@Remote
public interface ExecutorsRemote {
    public LinkedList<Executor> getAllExecutors();
    public LinkedList<Executor> getAllExecutors(int start, int count);
    public Executor getExecutor(int ID);
    public VeryExtExecutor getFullExecutor(int ID);

    public boolean AddExecutor(String FIO, Date date, String info);
    public boolean UpdateExecutor(int ID, String FIO, Date date, String info);
    public boolean DeleteExecutor(int ID);

    public boolean AddInstrumentToExecutor(int ID, int iID);
    public boolean DeleteInstrumentOfExecutor(int ID, int iID);
}
